﻿
namespace Oddo.Concept.Crm.Common.Attributes
{
    using System;

    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
    public class ModuleAccessAttribute : Attribute
    {
        private readonly string[] _roles;

        public ModuleAccessAttribute()
        {
            _roles = new string[]{"*"};
        }

        public ModuleAccessAttribute(string[] roles)
        {
            _roles = roles;
        }

        public string[] Roles { get { return _roles; } }
    }
}